package org.example;

import org.example.ai.model.entity.Users;
import org.example.ai.model.entity.Works;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "service-opus")
public interface OpusFeignClient {

    @GetMapping("/users/usersList")
    public List<Users> usersList();
    @GetMapping("/works/getAllWorks/{workId}")
    public Works getAllWorks(@PathVariable("workId") Integer workId);

}
